<% if @user %>
  <%= render :partial => "user_index" %>
<% elsif @challenge && @challenge.user_allowed_to_see_assignments?(current_user) %>
  <%= render :partial => "maintainer_index" %>
<% end %>